
var auctionLayout = [
				{
                    field: 'Icon',
                    name: 'Icon',
                    width: '75px',
                   	formatter: imageIcon
                },
				{
                    field: 'Title',
                    name: 'Title',
                    width: '200px'
                },
                {
                    field: 'Description',
                    name: 'Description',
                    width: '200px'
                },
                {
                    field: 'ExpectedPrice',
                    name: 'Expected Price',
                    width: 'auto'
                },
                {
                	field: 'BidNow',
                	name: 'BidNow',
                	width: 'auto',
                	formatter: makeBidNowButton
                }
                ];

function  makeBidNowButton(BidNow) {	
	var bidNowButton = "<img src='images/apply.jpg' onClick='bidNow(this)'/>"	
	return bidNowButton;
}

var buyNowLayout = [
				{
                    field: 'Icon',
                    name: 'Icon',
                    width: '75px',
                   	formatter: imageIcon
                },
				{
                    field: 'Title',
                    name: 'Title',
                    width: '200px'
                },
                {
                    field: 'Description',
                    name: 'Description',
                    width: '200px'
                },
                {
                    field: 'ExpectedPrice',
                    name: 'Expected Price',
                    width: 'auto'
                }
                ];
 
function imageIcon(value) {
  var url = value;
  var imgUrl = value;
  var img = '<img src="' + imgUrl + '" alt="" />';
  var imgLink = '<a href="' + url + '" />' + img + '</a>';
  return img;
}

var cartLayout = [{
    field: 'Title',
    name: 'Title',
    width: 'auto'
},
{
    field: 'ExpectedPrice',
    name: 'Price',
    width: 'auto'
}];
